class Media < ActiveRecord::Base
  belongs_to :rmedia, :polymorphic => true, :dependent=>:destroy

  validates_presence_of(:rmedia_type, :created_by)

  validates_presence_of(:rmedia)

end
